package edu.zut.hb.software.train.AdaptionManager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.Adaption.dao.AdaptionDao;
import edu.zut.hb.software.train.Adaption.domain.Adaption;
import edu.zut.hb.software.train.AdaptionManager.service.AdaptionManager;


@Service("adaptionManager")
public class adaptionManagerImpl extends GenericManagerImpl<Adaption, Long> implements AdaptionManager {

	
	AdaptionDao adaptionDao;
	
	@Autowired
	public void setAdaptionDao(AdaptionDao adaptionDao) {
		this.adaptionDao = adaptionDao;
		this.dao = this.adaptionDao;
	}

	@Override
	public List<Adaption> getAll() {
		List<Adaption> all = this.adaptionDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<Adaption> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}